home *** CD-ROM | disk | FTP | other *** search
- function buildRightWords()
- {
- i = 0;
- while(i <= leftWordArray.length - 1)
- {
- tg = 0.5 + i * 0.05;
- var rightInit = {_rotation:9.2 * i};
- var rightWords = rightWordCage.attachMovie("rightWord","rw" + i,d++,rightInit);
- rightWords.art._x = 0;
- rightWords.art.tween("_x",250,0.5,"easeOutBack",tg);
- rightWords.art.colorTo(rightWordArray[i][1],0,"linear");
- rightWords.art.createTextField("txt",d++,0,0,300,50);
- rightWords.art.txt.embedFonts = true;
- rightWords.art.txt.autoSize = true;
- rightWords.art.txt.text = rightWordArray[i][0];
- rightWords.art.txt.setTextFormat(rightFmt);
- rightWords.art.btn._width = rightWords.art.txt._width;
- rightWords.art.hilite1._x = rightWords.art.txt._width + 20;
- rightWords.art.hilite0._alpha = 0;
- rightWords.art.hilite1._alpha = 0;
- rBtn = rightWords;
- rBtn.num = i;
- rBtn.onRollOver = function()
- {
- current = this.num;
- checkTheCount();
- this.art.hilite0._alpha = 100;
- this.art.hilite1._alpha = 100;
- this.art._xscale = this.art._yscale = 115;
- currentMuppet = eval(rightWordArray[this.num][2]);
- select();
- };
- rBtn.onRollOut = function()
- {
- current = 0;
- checkTheCount();
- this.art.hilite0._alpha = 0;
- this.art.hilite1._alpha = 0;
- this.art._xscale = this.art._yscale = 100;
- };
- rBtn.onRelease = rBtn.onReleaseOutside = function()
- {
- };
- i++;
- }
- }
- function buildLeftWords()
- {
- i = 0;
- while(i <= leftWordArray.length - 1)
- {
- tg = 0.5 + i * 0.05;
- var leftInit = {_rotation:9.2 * (leftWordArray.length - i * 1)};
- var leftWords = leftWordCage.attachMovie("leftWord","lw" + i,d++,leftInit);
- leftWords.art.txt.text = leftWordArray[i][0];
- leftWords.art.colorTo(leftWordArray[i][1],0,"linear");
- leftWords.art.createTextField("txt",d++,0,0,100,50);
- leftWords.art.txt.embedFonts = true;
- leftWords.art.txt.autoSize = "right";
- leftWords.art.txt.text = leftWordArray[i][0];
- leftWords.art.txt.setTextFormat(leftFmt);
- leftWords.art.btn._width = leftWords.art.txt._width;
- leftWords.art.btn._x = leftWords.art.txt._x;
- leftWords.art.hilite0._x = leftWords.art.txt._x - 20;
- leftWords.art.hilite1._x = leftWords.art.txt._x + leftWords.art.txt._width + 20;
- leftWords.art.hilite0._alpha = 0;
- leftWords.art.hilite1._alpha = 0;
- leftWords.art._x = 0;
- leftWords.art.tween("_x",-360,0.5,"easeOutBack",tg);
- lBtn = leftWords;
- lBtn.num = i;
- lBtn.onRollOver = function()
- {
- current = this.num;
- this.art.hilite0._alpha = 100;
- this.art.hilite1._alpha = 100;
- this.art._xscale = this.art._yscale = 115;
- this.art._x = -375;
- currentMuppet = eval(leftWordArray[this.num][2]);
- select();
- };
- lBtn.onRollOut = function()
- {
- current = 0;
- this.art.hilite0._alpha = 0;
- this.art.hilite1._alpha = 0;
- this.art._x = -360;
- this.art._xscale = this.art._yscale = 100;
- };
- lBtn.onRelease = lBtn.onReleaseOutside = function()
- {
- };
- i++;
- }
- }
- var rightFmt = new TextFormat();
- rightFmt.font = "myFont";
- rightFmt.size = 24;
- rightFmt.align = "left";
- this.createEmptyMovieClip("rightWordCage",d++);
- rightWordCage._x = 400;
- rightWordCage._y = 300;
- rightWordCage._rotation = -54;
- buildRightWords();
- var leftFmt = new TextFormat();
- leftFmt.font = "myFont";
- leftFmt.size = 24;
- leftFmt.align = "right";
- this.createEmptyMovieClip("leftWordCage",d++);
- leftWordCage._x = 400;
- leftWordCage._y = 300;
- leftWordCage._rotation = -54;
- buildLeftWords();
-